package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.ZhengMingDao;
import com.cpecc.model.wuzi.CaiGou;
import com.cpecc.model.wuzi.ZhengMing;

@Service
@Transactional
public class ZhengMingManager {

	@Autowired
	private ZhengMingDao zhengMingDao;
	
	public void save(ZhengMing zhengMing){
		zhengMingDao.save(zhengMing);
	}
	
	public boolean cover(ZhengMing zhengMing){
		return zhengMingDao.cover(zhengMing);
	}
	
	public ZhengMing get(String id){
		return zhengMingDao.get(id);
	}
	
	public boolean delete(String id){
		return zhengMingDao.delete(id);
	}
	
	public List<ZhengMing> list(){
		return zhengMingDao.list();
	}
	
	public List<ZhengMing> list(String fileName){
		return zhengMingDao.list(fileName);
	}
	
	public List<ZhengMing> list(CaiGou caiGou){
		return zhengMingDao.list(caiGou);
	}
}
